extends EntryTrigger


class_name IInputAction
"""
输入事件接口
"""


func __is_input_pressed(e: InputEvent) -> bool:
    return false

func __is_input_released(e: InputEvent) -> bool:
    return false

func yield_input(e: InputEvent) -> void:
    if __is_input_pressed(e):
        __on_event_enter()
    elif __is_input_released(e):
        __on_event_exit()
